package cn.edu.csmzxy.rk233x.auth_system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.util.List;
/**
 * @author wumxing
 * @date 2025/10/15 16:15
 * @description  角色权限关联 DTO
 */
@Data
@Schema(description = "角色权限关联参数")
public class RolePermissionDTO {
    @Schema(description = "角色ID", example = "2")
    @NotNull(message = "角色ID不能为空")
    private Long roleId;

    @Schema(description = "权限ID列表", example = "[3,4,5]")
    @NotEmpty(message = "至少选择一个权限")
    private List<Long> permissionIds;
}